doctype xml
office:document(
    office:version="1.3"
    office:mimetype="application/vnd.oasis.opendocument.spreadsheet"
    xmlns:office='urn:oasis:names:tc:opendocument:xmlns:office:1.0'
    xmlns:config='urn:oasis:names:tc:opendocument:xmlns:config:1.0'
    xmlns:loext='urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0'
    xmlns:table='urn:oasis:names:tc:opendocument:xmlns:table:1.0'
    xmlns:fo='urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0'
    xmlns:ooo='http://openoffice.org/2004/office'
    xmlns:style='urn:oasis:names:tc:opendocument:xmlns:style:1.0'
    xmlns:calcext='urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0'
    xmlns:text='urn:oasis:names:tc:opendocument:xmlns:text:1.0'
  )
  office:settings
    config:config-item-set(config:name="ooo:view-settings")
      config:config-item-map-indexed(config:name="Views")
        config:config-item-map-entry
          config:config-item(config:name="ViewId" config:type="string") view1
          config:config-item-map-named(config:name="Tables")
            each rows, name in sheets
              config:config-item-map-entry(config:name=name)
                config:config-item(config:name="HorizontalSplitMode" config:type="short") 0
                config:config-item(config:name="VerticalSplitMode" config:type="short") 2
                config:config-item(config:name="HorizontalSplitPosition" config:type="int") 0
                config:config-item(config:name="VerticalSplitPosition" config:type="int") 1
                config:config-item(config:name="ActiveSplitRange" config:type="short") 0
                config:config-item(config:name="PositionLeft" config:type="int") 0
                config:config-item(config:name="PositionRight" config:type="int") 0
                config:config-item(config:name="PositionTop" config:type="int") 0
                config:config-item(config:name="PositionBottom" config:type="int") 1
  office:styles
    loext:theme(loext:name="Office")
      loext:theme-colors(loext:name="LibreOffice")
  office:automatic-styles
    style:style(style:name="ce1" style:family="table-cell" style:parent-style-name="Default")
      style:text-properties(fo:font-weight="bold" style:font-weight-asian="bold" style:font-weight-complex="bold")
  office:body
    office:spreadsheet
      each rows, name in sheets
        table:table(table:name=name table:style-name="ta1")
          - const columns = Object.keys(rows[0])
          table:table-column(table:style-name="co1" table:number-columns-repeated="16384" table:default-cell-style-name="ce1")
          table:table-row(table:style-name="ro1")
            each column in columns
              table:table-cell(office:value-type="string" calcext:value-type="string")
                text:p= column
            table:table-cell(table:number-columns-repeated="16382")
          each row in rows
            table:table-row(table:style-name="ro1")
              each column in columns
                table:table-cell(table:style-name="Default" office:value-type="string" calcext:value-type="string")
                  text:p= row[column]
              table:table-cell(table:style-name="Default" table:number-columns-repeated="16382")
